// 引入 variables.scss 以使用全局变量
@import '@/styles/variables';

.container {
  display: flex;
  position: relative;
  flex-direction: column;
  background-color: $bg-white;
}

.header {
  display: flex;
  padding: 16px 32px;

  .avatar {
    width: 80px;
    height: 80px;

    image {
      border-radius: 50%;
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }

  .userInfo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 16px;

    .userName {
      display: flex;
      align-items: center;
      margin-bottom: 8px;
      font-size: $font-size-base;

      .vip {
        margin-left: 8px;
        width: 56px;
        height: 28px;
        display: flex;
        align-items: center;

        image {
          width: 100%;
          height: 100%;
          object-fit: contain;
        }
      }
    }

    .postTime {
      font-size: $font-size-small;
      color: $sub-title-color;
    }
  }
}

.content {
  display: flex;
  flex-direction: column;
  padding: 16px 32px;

  .title {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-weight: $font-weight-bold;
    font-size: $font-size-large;
    color: $title-color;
  }

  .description {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 16px;
    line-height: $line-height-base;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    text-align: left;
    font-size: $font-size-base;
    color: $title-color;
    -webkit-box-orient: vertical;
  }
}

.contactBtn {
  display: flex;
  position: absolute;
  right: 32px;
  top: 32px;
  justify-content: center;
  align-items: center;
  padding: 8px 32px;
  border: 2px solid $primary-color;
  border-radius: 200px;
  height: 56px;
  font-size: 28px;
  color: $primary-color;
}